Access monitor and access monitoring method

ABSTRACT

An access violation of the program is monitored by the access monitor which is a hardware. The access monitor acquires a signal input from the CPU to a memory. The access monitor includes an access permission table as information of the memory region to be permitted to each program, and detects the access violation of the signal from the CPU by referring thereto. In this manner, the unjust access is monitored by the hardware, thereby preventing the unjust access by rewriting in software.

BACKGROUND OF THE INVENTION

[0001] 1. Field of the Invention

[0002] The present invention relates generally to security of an apparatus having a central processing unit (CPU) for executing a plurality of programs, and more particularly, to an access monitor for monitoring an unjust access between the programs in the apparatus, and an access monitoring method.

[0003] 2. Description of the Related Arts

[0004] In recent years, as an electronic commerce, etc. is spread, an electronic dealing apparatus such as an electronic money terminal, an ATM (Automatic Teller Machine), or the like high in security is acquired. The electronic dealing apparatus installs a plurality of programs such as OS (Operating System), applications, various drivers, and the like, and an built-in CPU executes them. At this time, in order to secure the security of each application, it is necessary that the plurality of applications memorized in a RAM built in the apparatus are isolated from each other. The isolation of the applications is to prevent an unjust access to a memory region of another application in the RAM by execution of a certain application.

[0005]FIG. 5 is a configuration diagram of a program installed in an apparatus. In FIG. 5, respective programs such as applications A, B, . . . , drivers A, B, C, . . . , or the like are managed by the OS.

[0006]FIG. 6 is a typical diagram of program execution conditions. The plurality of programs to be executed are memorized in a memory (RAM) in the apparatus. The CPU accesses to a memory region corresponding to the program to be executed, and reads out the program to be executed. However, in the prior art, as each program is isolated in software, readout of another program is possible by execution of a certain program by rewriting of the certain program (arrow of a waved line in the drawing).

[0007] More specifically, as each program operates only one program time-divisionally, it is impossible to completely control operation of a program such as applications, or the like by the OS. Accordingly, in order that a programmer looks at a memory region of another program intentionally, when the programmer rewrites the program, or a runaway of the executing program occurs, it is possible that an unjust access is readily made to a memory region of another program.

[0008] In this manner, in a conventional apparatus, in the case where security information (for example, a password, etc.) is memorized in a memory region by executing a program, an access can be made from the other programs to the memory region, and there is a problem that, if the program is isolated only in software, an absolute isolation between programs is not ensured.

[0009] Furthermore, even if a certain program is installed in the apparatus, and the operation is confirmed, when another program is installed therein thereafter, it is impossible to ensure whether to affect the original program, or whether or not the original program operates correctly. Accordingly, after another program is installed therein, operational verification of the original program had to be remade from the beginning.

SUMMARY OF THE INVENTION

[0010] It is therefore an object of the present invention to provide an access monitor for monitoring an unjust access between programs in an apparatus installing a plurality of programs, and an access monitoring method.

[0011] In order to attain the above objects, according to the present invention, an access violation of the program is monitored by the access monitor which is a hardware. The access monitor acquires a signal input from the CPU to a memory. The access monitor includes an access permission table as information of the memory region to be permitted to each program, and detects the access violation of the signal from the CPU by referring thereto. In this manner, the unjust access is monitored by the hardware, thereby preventing the unjust access by rewriting in software.

[0012] The access monitor according to the present invention for attaining the aforesaid objects is, for example, one for monitoring an access between programs in an apparatus including a CPU and a memory storing each of the plurality of programs to be executed thereby. The access monitor comprises a table for storing access permission information including information concerning a region of the memory, which is permitted to access in each program; and a detector for acquiring a signal output from the CPU to the memory and for detecting an unjust access of a program executed by the CPU by monitoring the address included in the signal from the CPU based on the access permission information corresponding to the program executed by the CPU, the access permission information being established by a predetermined managing program in advance.

[0013] Preferably, when the detector detects the unjust access, the detector causes the CPU to occur an interruption and the CPU executes an interruption processing by the managing program.

[0014] Furthermore, the access monitor comprises a data storing unit, wherein, when the detector detects the unjust access, the detector writes information corresponding to the unjust access into the data storing unit, and the CPU executes the interruption processing corresponding to information written into the data storing unit.

[0015] Furthermore, preferably, the program to be executed by the CPU writes an end of such program into the data storing unit, and when the detector detects that the end of the program is written into the data storing unit, the detector causes the CPU an interruption.

[0016] Furthermore, the detector switches the established access permission information to the access permission information corresponding to the managing program in the case of occurring the interruption in the CPU.

[0017] The managing program can access to all regions of the memory, and further the managing program is stored in the memory as rewriting disable, and the other programs other than the managing program are accessible to a storage region of the managing program.

[0018] Furthermore, preferably, the access permission information has the information concerning read and/or write permission corresponding to the region of the memory, and when the detector detects the unjust access, the detector cut off a read signal and/or a write signal to be output from the CPU to the memory based on the access permission information.

[0019] Furthermore, preferably, the access permission information has information concerning permission of instruction execution and/or data access corresponding to the region of the memory, and when the detector detects an unjust access, the detector cut off an instruction signal and/or data access signal to be output from the CPU to the memory based on the access permission information.

[0020] The access monitoring method for attaining the aforesaid objects is, for example, one for monitoring an access between programs in an apparatus including a CPU and a memory storing each of the plurality of programs to be executed thereby. The access monitoring method comprises the steps of: preparing access permission information including information concerning a region of the memory, which is permitted to access in each program; establishing, by a predetermined managing program, the access permission information corresponding to the program to be executed by the CPU; acquiring an access signal to be output from the CPU to the memory; and detecting the unjust access of the program to be executed by the CPU by monitoring the region of the memory corresponding to the access signal from the CPU based on the established access permission information.

BRIEF DESCRIPTION OF THE DRAWINGS

[0021]FIG. 1 shows a configuration of a monitor according to an embodiment of the present invention;

[0022]FIG. 2A and 2B are diagrams for explaining a configuration of a program installed in a monitor according to the embodiment of the present invention;

[0023]FIG. 3 is a diagram for explaining a region of an inner memory according to the embodiment of the present invention;

[0024]FIG. 4 is a diagram showing a flowchart of an access control processing according to the embodiment of the present invention;

[0025]FIG. 5 shows a configuration of a conventional program installed in an apparatus;

[0026]FIG. 6 is a typical diagram of program execution conditions; and

[0027]FIG. 7 is a flowchart of the access control processing according to another embodiment of the present invention.

DESCRIPTION OF THE PREFERRED EMBODIMENTS

[0028] Hereinafter, an embodiment of the present invention will be explained. However, a technical scope of the present invention is not limited to this embodiment.

[0029]FIG. 1 is a configuration diagram of an access monitor according to the embodiment of the present invention. According to the present invention, an unjust access to another program memorized in a memory region by execution of a certain program is detected by a hardware, namely an access monitor 1 in FIG. 1, thereby ensuring absolutely an isolation between the respective programs.

[0030] In FIG. 1, a CPU 2 outputs various signals (an address signal AD, a data signal DT, a strobe signal (a read signal, a write signal, an instruction signal, a data access signal, or the like), STROBES, or the like) to a device group 3 which is accessed by a CPU 2 such as an inner memory, a register, an external device, or the like (hereinafter representatively referred to as a memory). The access monitor 1 monitors a signal output from the CPU 2.

[0031] The access monitor 1 contains access monitoring information 11, an access violation detector 12, and access violation/end information 13. The access monitoring information 11 and access violation/end information 13 are stored in a register built in the access monitor 1, for example. Furthermore, the access monitoring information 11 contains presently executing application information 111, and an information table of an access permission region (hereinafter referred to as an access permission table) 112. The presently executing application information 111 contains an identification number for identifying each program, as described later. The access permission table 112 contains information of the access permission region corresponding to each application. The access violation detector 12 is constituted by a comparator or the like, and as described below, a signal to be output from the CPU 2 (an address signal, a strobe signal, or the like) is monitored based on the access monitoring information 11.

[0032] Furthermore, when the access violation detector 12 detects an end of each program, or an access violation, access violation information and program end information are written into the register (data storing unit) as the access violation/end information 13, and also an interruption (INT) is caused to the CPU 2.

[0033]FIG. 2A and 2B are diagrams for explaining a configuration of a program installed in the access monitor according to the embodiment of the present invention. In FIG. 2A, the monitor 1 according to the embodiment of the present invention further installs an application manager (managing program) as a program for managing the access monitoring information (the presently executing application information 111 and access permission table 112) 11, and the access violation/end information 13. Furthermore, the application manager manages a start and end of each application.

[0034] Furthermore, according to the embodiment of the present invention, an identifier of each program is allocated to each program. For example, in the case where numbers of “0” to “15” (identification numbers) are allocated as the identifier, the identification number is defined as shown in FIG. 2B. Namely, OS, the application manager, a driver, a handler, etc. are allocated to the identification number “0”. The identification number “0” is a special number, and in the program of the identification number “0”, an access to all the regions in the inner memory 3 is permitted. Accordingly, in the above access permission table 112, the table corresponding to the identification number “0” is not necessary.

[0035] Furthermore, separate application is allocated to the identification numbers “1” to “15” excluding the identification number “0.” In the application of the identification numbers “1” to “15,” an access is permitted only to the region of the inner memory 3 specified by the access permission table 112. In the case where the program of the identification numbers “1” to “15” accesses to the region not specified by the access permission table 112, the access violation detector 2 detects the access violation.

[0036]FIG. 3 is a diagram for explaining a region of an inner memory according to the embodiment of the present invention. In regions A to E shown in FIG. 3, the region A is a region to which the program of the identification number “0” can access, and the OS, etc. is memorized. The region B is a region to which all the applications of the identification numbers “1” to “15” can access, and the application manager is memorized. In the case where the programs of the identification numbers “1” to “15” are activated, as described below, the application manager rewrites the presently executing application information 111 of the access monitoring information 11 from the identification number “0” to an identification number of the application to be activated. At this time, as this rewriting is performed prior to transfer of a processing to the application to be activated, such inconveniences are caused that the rewriting is performed, and simultaneously the processing by the application manager of the identification number “0” is detected as the access violation.

[0037] In order to dissolve these inconveniences, according to the embodiment of the present invention, as shown in FIG. 3, the application manager is stored in the region B where the programs of all the identification numbers are accessible. Namely, a rewriting routine of the identification number is effected in the region where all programs are accessible. Accordingly, the respective access permission tables 112 corresponding to the application of the identification numbers “1” to “15” have address information of the region B as well as the region (for example, regions D, E of FIG. 3) corresponding to each application. Furthermore, since it is prevented that the application manager is unjustly rewritten, the application manager is written into an inner ROM which is disabled to rewrite.

[0038] The region C is, for example, a use region of a driver, a handler, etc., and the program of the identification number “0” is accessible. Furthermore, the regions D, E are use regions of applications 1, 2, respectively, and the programs of the respective identification numbers and the identification number “0” are accessible.

[0039]FIG. 4 is a diagram showing a flowchart of an access control processing according to the embodiment of the present invention. In FIG. 4, for example, a start and end of the application of the identification number “1” (hereinafter merely referred to as application 1) will be explained.

[0040] In the case where the application 1 is activated, first, an “activation request for the application 1” is issued from the OS to the application manager (S20). Then, the application manager rewrites the presently executing application information 111 of the access monitoring information 11 from the identification number “0” to “1” (S30). Thus, the access violation detector 12 selects the access permission table 112 corresponding to the application 1, and monitors various access signals from the CPU 2. When the application manager rewrites the presently executing application information 111, it calls out the application 1 (S31).

[0041] The application 1 is activated (S50) (arrow {circle over (1)} of FIG. 3), and a processing of the application 1 is executed (S51). The execution of the application 1 is shown by arrow {circle over (2)} of FIG. 3. During the processing of the application 1, for example, when a use demand of the device occurs (S52), an interruption processing starts as explained next. The interruption processing is not limited to the use demand of the demand, but is executed even by an end of application in the case where the application 1 is merely desired to end.

[0042] In the case where the interruption processing is executed by the use demand of the device or application end, the application 1 writes interruption information into the access violation/end information 13 of the monitor 1 (S53). The interruption information contains an interruption factor (device use demand, application end, access violation, or the like). The access violation detector 12 also always monitors the access violation/end information 13. When the access violation detector 12 detects that the interruption information is written, it causes an interruption (INT) for the CPU 2, it further rewrites the presently executing application information 111 of the access monitoring information 11 from the identification number “1” to “0” (S40). When the interruption occurs, the CPU 2 executes an interruption routine of an interruption table region in the region A of FIG. 3 (arrow {circle over (3)} of FIG. 3), and transfers the processing to the application manager (arrow {circle over (4)} of FIG. 3).

[0043] The application manager analyzes the interruption information in the access violation/end information 13, and judges the interruption factor (S32). In the case where the interruption factor is a use demand of the device, the application manager transfers the processing to the OS, the OS calls out the device (device call) (S21). Then, for example, the handler corresponding to the device activates (S10), and the access processing to the device is executed (S11). Thereafter, when the handler is ended (S12), the processing is again transferred to the application manager by way of the OS. The application manager rewrites the presently executing application information 111 from the identification number “0” to “1” in the same manner as in steps S30 and S31, and calls out the application 1 (S34). Thus, the processing of the application 1 restarts (S54).

[0044] When the access signal to the memory region which is not permitted by the access permission table 112 corresponding to the application 1 is output during the processing of the application 1, the access violation detector 12 detects an access violation (unjust access) (S55). When the access violation detector 12 detects the access violation, it writes an access violation factor into the access violation/end information 13 as the interruption information, and also causes the interruption (INT) for the CPU 2. Incidentally, the access violation detector 12 includes an access control table in which a plurality of access violation factors are established, and determines the access violation factor corresponding to the access violation detected with reference thereto.

[0045] Furthermore, the access violation detector 12 causes the interruption, and also similar to step S40, it rewrites the presently executing application information 111 of the access monitoring information 11 from the identification number “1” to “0” (S41). Similar to the above, when the interruption occurs, the CPU 2 executes the interruption routine of the interruption table region in the region A of FIG. 3 (arrow {circle over (5)} of FIG. 3), and transfers the processing to the application manager (arrow {circle over (4)} of FIG. 3).

[0046] The application manager analyzes the access violation factor in the access violation/end information 13, and judges the interruption factor (S35). Corresponding to the type of access violation factor, the different processing may be established. For example, the application manager again rewrites the presently executing application information 111 from the identification number “0” to “1” (S36), and calls out the application 1 (S37). At this time, the application manager notifies the application 1 of an error. Thus, the application 1 is ended (S56). At this time, the application 1 writes the interruption information corresponding to the application end into the access violation/end information 13 of the monitor 1 (S57). When the access violation detector 12 detects that the interruption information is written, it causes the interruption (INT) for the CPU 2, and further rewrites the presently executing application information 111 of the access monitoring information 11 from the identification number “1” to “0” (S42). When the interruption occurs, in the same manner as above, the application manager analyzes the interruption factor (S38), and in the case where the interruption factor is an application end, as the application has already been ended, the processing returns to the OS (S23).

[0047] Incidentally, the application is not ended during the application 1 corresponding to the interruption factor judged at step S35, but a processing of deleting a task of the application may be performed (KILL processing) (S22).

[0048] In this manner, according to the embodiment of the present invention, the access monitor 1 monitors the access violation of the program in a hardware manner. The access monitor 1 includes an access permission table as the information of the memory region permitted in each program, and detects the access violation with reference thereto. Accordingly, it is possible to prevent the unjust access by rewriting of the program, etc.

[0049] Furthermore, as the application manager for controlling the access permission table in each program writes into the inner ROM, the rewriting of the application manager is impossible. Accordingly, the unjust access by the rewriting of the access permission table is prevented, and it is realized that the unjust access between the programs is absolutely ensured.

[0050] The program establishing the access permission table is limited to the access to the inner memory, etc. by the access permission table. When the access violating the access permission table is tried, the interruption is automatically occurred in the CPU 2 by the access monitor 1 as a hardware. The processing of the CPU 2 is compulsorily transferred to the processing corresponding to the access violation by the application manager.

[0051] On the other hand, the program establishing the access permission table utilizes the interruption for both the end and device use demand (device request). As described above, at the times of the device use demand and program end, predetermined information is written to the register 13 of the access monitor 1, so that the access monitor 1 causes the CPU 2 to occur the interruption. By this interruption processing, the device use demand processing and program end processing by the application manager are executed. This is because, since a change of the presently executing program is recognized to the access monitor 1, it is necessary that the identification number in the presently executing program information 111 in the access monitor 1 is changed by the application manager.

[0052] Furthermore, the region of the register for storing the access monitoring information 11 or access violation/end information 13 is designed to be a region where only the program of the identification number “0” (in particular, application manager) is accessible. This is because it is prevented that the application of another identification number rewrites unjustly its own identification number.

[0053] Furthermore, according to the present invention, as shown in FIG. 1, the access monitor 1 monitors an address signal from the CPU 2 as well as a strobe signal (a read signal, a write signal, an instruction signal, a data access signal, etc.). Access conditions as well as the access permission region are established in the access permission table. The access conditions are, for example, a read enable/disable and a write enable/disable with respect to the predetermined memory region, the read and write being both the enable/disable. Furthermore, the access conditions are an enable/disable of an instruction execution and an enable/disable of a data access with respect to the predetermined memory region, and the instruction execution and data access are both the enable/disable.

[0054] In the case where the access monitor 1 violates the access conditions of the access permission table 112, a gate 4 of a strobe line may be closed, thereby preventing the unjust access. In this manner, the strobe line is cut off physically, and the strobe signal is not reached the inner memory 3, so that it is possible to prevent the unjust access. Incidentally, in this case, it is not necessary that the access monitor 1 causes the CPU 2 to occur the interruption (of course, may cause to occur).

[0055] Furthermore, according to the above embodiment, the driver, handler, or the like is established as the same identification number “0” with the application manager, and OS, but a number excluding the identification number “0” may be imparted in the same manner as in the application. However, as the direct operation by the application is not permitted, a different number from the application is imparted. Furthermore, the identification numbers of the application manager and OS are not required to be “0”, but have only to differ from the identification number of the application.

[0056] (Another Embodiment)

[0057] Next, another embodiment of the present invention will be explained. According to this embodiment, a processing in the case where the application occurs a DMA (Direct Memory Access) demand will be explained. The device (memory, etc.) enables a high-speed data transfer not via the CPU by the DMA transfer. Namely, as the DMA transfer is made outside control of the CPU, in the DMA transfer, a signal from the CPU to the device is not output, and the access monitor according to the present invention cannot monitor the unjust access in the DMA transfer. According to this embodiment, in the case of the DMA transfer, the unjust access is monitored by a DMA control handler (control program) set to be an application level 0.

[0058]FIG. 7 shows a flowchart of an access control processing according to another embodiment of the present invention. In FIG. 7, a start and end of the application of an identification number “X (X=1 to 15)” (hereinafter referred to as merely application X) will be explained.

[0059] In the case where the application X is activated, first, a “start request for application X” from the OS to the application manager is issued (S120). Then, the application manager rewrites the presently executing application information 111 of the access monitoring information 11 from the identification number “0” to “X” (S130). Thus, the access violation detector 12 selects the access permission table 112 corresponding to the application X, and monitors various access signals from the CPU 2. After the application manager rewrites the presently executing application information 111, it calls out the application X (S131).

[0060] The application X is activated (S150), and during the processing of the application X, for example, data writing is effected into the access permission region of the application 1 of the memory 3 (S151), and when the DMA demand of the data is occurred (S152), and the interruption processing described in FIG. 4 starts.

[0061] That is, the application X writes into the access violation/end information 13 of the monitor 1 with a DMA request system call corresponding to the DMA demand as the interruption information (S153). The DMA request system call has parameters such as a transferor heading address, a transferee heading address, transfer data ranges, and the like. When the access violation detector 12 detects that the interruption information is written, it causes the interruption (INT) to the CPU 2, and further, rewrites the presently executing application information 111 of the access monitoring information 11 from the identification number “X” to “0” (S140). When the interruption occurs, as described above, the CPU 2 transfers the processing to the application manager.

[0062] The application manager analyzes the interruption information in the access violation/end information 13, and judges the interruption factor (S132). According to this embodiment, as the interruption factor is a DMA demand, the application manager transfers the processing to the OS, and the OS activates the DMA control handler (S121). The activated DMA control handler refers to the access permission table 112 of the access violation monitor 1, and judges the unjust access in the parameters included in the DMA request system call (S110). Specifically, in the parameters included in the DMA request system call, it is judged whether or not

[0063] (1) the memory region up to the transferor heading address to such heading address+the transfer data ranges is a read permission region of the application X, and further whether or not

[0064] (2) the memory region up to the transferor heading address to such heading address+the transfer data ranges is a write permission region of the application X.

[0065] When the DMA control handler judges as the unjust access, the OS receives an unjust access notice (S122), and further, the OS transfers the unjust access notice to the application manager, and transfers the processing to the application manager.

[0066] The application manager rewrites the presently executing application information 111 from the identification number “0” to “X” (S133), and calls out the application X again (S134). At this time, the application manager notifies the application X of an error. Thus, the application X performs an end processing (S154). At this time, the application X writes an EXIT request system call corresponding to the application end into the access violation/end information 13 of the monitor 1, as the interruption information (S155). When the access violation detector 12 detects that the interruption information is written, it causes the interruption (INT) to the CPU 2, and further, rewrites the presently executing application information 111 of the access monitoring information 11 from the identification number “X” to “0” (S141). When the interruption occurs, as described above, the application manager analyzes the interruption factor (S135). According to this embodiment, as the interruption factor is an application end, the OS performs the application EXIT processing (S123), and transfers to a next task processing (S124).

[0067] On the other hand, at step S110, in the case where the access is unjust, the DMA control handler issues a DMA instruction (S111), and executes the DMA transfer. When the DMA transfer is ended, the OS receives a DMA completion notice (S125). Furthermore, the OS transfers the DMA completion notice to the application manager, and transfers the processing to the application manager.

[0068] The application manager rewrites the presently executing application information 111 from the identification number “0” to “X” (S136), and calls out the application X again (S137). Thus, the processing of the application X is continued (S156).

[0069] In this manner, in the case where the DMA demand occurs in the application, the DMA control handler checks the access region with respect to the DMA demand of the activating application, and detects the unjust access.

[0070] Hereinabove, according to the present invention, in the apparatus including the CPU and the plurality of programs to be executed thereby, it is possible to prevent the unjust access between the programs, so that security of the apparatus is enhanced.

[0071] The scope of protection of the present invention is not limited to the above embodiments but covers the invention defined by the appended claims and its equivalents. 

What is claimed is:
 1. An access monitor for monitoring an access between programs in an apparatus including a CPU and a memory memorizing a plurality of programs to be executed thereby, comprising: a table for storing access permission information including information concerning a region of the memory, which is permitted to access in each program; and a detector for acquiring a signal output from the CPU to the memory and for detecting an unjust access of a program executed by the CPU by monitoring the address included in the signal from the CPU based on the access permission information corresponding to the program executed by the CPU, the access permission information being established by a predetermined managing program in advance.
 2. The access monitor according to claim 1 , wherein, when the detector detects the unjust access, the detector causes the CPU to occur an interruption and the CPU executes an interruption processing by the managing program.
 3. The access monitor according to claim 2 , further comprising: a data storing unit, wherein, when the detector detects the unjust access, the detector writes information corresponding to the unjust access into the data storing unit, and the CPU executes the interruption processing corresponding to information written into the data storing unit.
 4. The access monitor according to claim 3 , wherein the program to be executed by the CPU writes an end of such program into the data storing unit, and when the detector detects that the end of the program is written into the data storing unit, the detector causes the CPU an interruption.
 5. The access monitor according to claim 2 , wherein the detector switches the established access permission information to the access permission information corresponding to the managing program in the case of occurring the interruption in the CPU.
 6. The access monitor according to claim 1 , wherein the managing program is able to access to all regions of the memory.
 7. The access monitor according to claim 1 , wherein the managing program is stored in the memory as rewriting disable, and the other programs other than the managing program are accessible to a storage region of the managing program.
 8. The access monitor according to claim 1 , wherein the access permission information has the information concerning read and/or write permission corresponding to the region of the memory, and when the detector detects the unjust access, the detector cut off a read signal and/or a write signal to be output from the CPU to the memory based on the access permission information.
 9. The access monitor according to claim 1 , wherein the access permission information has information concerning permission of instruction execution and/or data access corresponding to the region of the memory, and when the detector detects an unjust access, the detector cut off an instruction signal and/or data access signal to be output from the CPU to the memory based on the access permission information.
 10. An access monitoring method for monitoring an access between programs in an apparatus including a CPU and a memory storing a plurality of programs to be executed thereby, comprising the steps of: preparing access permission information including information concerning a region of the memory, which is permitted to access in each program; establishing, by a predetermined managing program, the access permission information corresponding to the program to be executed by the CPU; acquiring an access signal to be output from the CPU to the memory; and detecting the unjust access of the program to be executed by the CPU by monitoring the region of the memory corresponding to the access signal from the CPU based on the established access permission information.
 11. The access monitoring method according to claim 10 , wherein the detector causes the CPU to occur an interruption and an interruption processing by the managing program is executed by the CPU when the unjust access is detected.
 12. The access monitoring method according to claim 11 , wherein the detector switches the established access permission information to the access permission information corresponding to the managing program when unjust access is detected.
 13. The access monitoring method according to claim 10 , wherein the managing program is able to access to all regions of the memory.
 14. The access monitoring method according to claim 10 , wherein the managing program is stored in the memory as rewriting disable, and the other programs other than the managing program are accessible to a storage region of the managing program.
 15. The access monitoring method according to claim 10 , wherein the access permission information has the information concerning read and/or write permission corresponding to the region of the memory, and when the detector detects the unjust access, the detector cut off a read signal and/or a write signal to be output from the CPU to the memory based on the access permission information.
 16. The access monitoring method according to claim 10 , wherein the access permission information has information concerning permission of instruction execution and/or data access corresponding to the region of the memory, and when the detector detects an unjust access, the detector cut off an instruction signal and/or data access signal to be output from the CPU to the memory based on the access permission information.
 17. The access monitoring method according to claim 10 , wherein, when the program executed by the CPU occurs a direct memory access request, a program controlling the direct memory access monitors the region of the memory corresponding to the direct access memory request and detects the unjust access of the program executed by the CPU based on the established access permission table. 